/**
 * Created by Samuel on 16/8/5.
 */


if(typeof m == "undefined"){
    var m = {};
    m.html2 = "./2.html";
    m.html3 = "./3.html";


}

function sInputView(path,callback) {
    if (path==null){
        callback(null);
        return;
    }
    $.ajax({
        async:false,
        url : path,
        success : function(result){
            if (callback!=null){
                callback(result)
            }
        },
        //调用执行后调用的函数
        complete: function(XMLHttpRequest, textStatus){

        },
        //调用出错执行的函数
        error: function(aaa,bbb,ccc){
            if (callback!=null){
                callback(null)
            }
        }
    });
}

